import request from '@/utils/myrequest'
// 初始化列表
function getList(kvs) {
  return request({
    url: '/mtms/ToolingSuitMain/GetList',
    method: 'get',
    kvs
  })
}
// 生产流程列表
function getProcessFlowList(kvs) {
  return request({
    url: '/config/ProcessFlowMapping/GetProcessFlowList',
    method: 'get',
    kvs
  })
}
// 带出模式下拉框
function getBringModeList(kvs) {
  return request({
    url: '/config/Common/GetEnumList',
    method: 'get',
    kvs
  })
}
// 新增
function doAdd(kvs) {
  return request({
    url: '/mtms/ToolingSuitMain/Add',
    method: 'POST',
    kvs
  })
}
// 删除
function doDelete(kvs) {
  return request({
    url: '/mtms/ToolingSuitMain/Delete',
    method: 'POST',
    kvs
  })
}
// 获取详情
function getInfos(kvs) {
  return request({
    url: '/mtms/ToolingSuitMain/Get',
    method: 'get',
    kvs
  })
}
// 更新
function doUpdate(kvs) {
  return request({
    url: '/mtms/ToolingSuitMain/Update',
    method: 'POST',
    kvs
  })
}
// 获取备件型号
function getByTypeModelList(kvs) {
  return request({
    url: '/mtms/ToolingModels/GetByTypeModelList',
    method: 'get',
    kvs
  })
}
export default{
  getList, getProcessFlowList, getBringModeList, doAdd, doDelete,
  getInfos, doUpdate, getByTypeModelList
}
